package cc.eddic.practice.spring.dto;

import cc.eddic.practice.spring.domain.Exam;
import cc.eddic.practice.spring.domain.Student;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ExamAddRequest {

    private String name;

    private int timeLimit;


    public Exam as(){ return new Exam(this.name, this.timeLimit);}

}
